import Layout from '@/layout'

const adminAutoRouter = {
  path: '/auto',
  component: Layout,
  redirect: 'auto',
  meta: { roles: ['admin'], title: '智能场景', icon: 'example' },
  children: [
    {
      path: '/auto/index',
      component: () => import('@/views/auto/index'),
      meta: { title: '智能场景', icon: 'tree' }
    },
    {
      path: '/auto/add',
      component: () => import('@/views/auto/add'),
      meta: { title: '智能场景-添加', icon: 'tree' },
      hidden: true
    },
    {
      path: '/auto/edit',
      component: () => import('@/views/auto/edit'),
      meta: { title: '智能场景-编辑', icon: 'tree' },
      hidden: true
    },
    {
      path: '/auto/info',
      component: () => import('@/views/auto/info'),
      meta: { title: '智能场景-详情', icon: 'tree' },
      hidden: true
    }
  ]
}

export default adminAutoRouter
